package com.xishu.entity.plat;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

@Entity(name = "cache_plat_report")
public class CachePlatReport extends AbstractEntity {
    @ApiModelProperty(name = "B端在线人数")
    private Long onlineInB;

    @ApiModelProperty(name = "实时上菜数量,发送到厨房的菜的数量," +
            "接口变更过后，变成当天发送到厨房的菜品的数量")
    private long countAllOnlineItem;

    @ApiModelProperty(name = "刷新时间")
    private Long refreshTime;

    @ApiModelProperty(name = "刷新时间")
    private String refreshDate;

    public String getRefreshDate() {
        return refreshDate;
    }

    public void setRefreshDate(String refreshDate) {
        this.refreshDate = refreshDate;
    }

    public long getCountAllOnlineItem() {
        return countAllOnlineItem;
    }

    public void setCountAllOnlineItem(long countAllOnlineItem) {
        this.countAllOnlineItem = countAllOnlineItem;
    }

    public Long getRefreshTime() {
        return refreshTime;
    }

    public void setRefreshTime(Long refreshTime) {
        this.refreshTime = refreshTime;
    }

    public Long getOnlineInB() {
        return onlineInB;
    }

    public void setOnlineInB(Long onlineInB) {
        this.onlineInB = onlineInB;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("CachePlatReport{");
        sb.append("onlineInB=").append(onlineInB);
        sb.append(", countAllOnlineItem=").append(countAllOnlineItem);
        sb.append(", refreshTime=").append(refreshTime);
        sb.append(", refreshDate='").append(refreshDate).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
